package p2;

/**
 * @author krystal
 * @date 2022/11/9 17:12
 */
public class Demo3 {
    public static void main(String[] args) {
        int a = 6;
        a += 2;  //a=a+2
        System.out.println(a);  //8

        a -= 1;  //a=a-1
        System.out.println(a);  //7

        a *= 3;  //a=a*3
        System.out.println(a);  //21

        a /= 2;  //a=a/2
        System.out.println(a);  //10

        a %= 4;  //a=a%4
        System.out.println(a);  //2
    }
}
